<script language="javascript" type="text/javascript">
<!--
// Javascript libary - March 2005 - STFU - Netherlands
// JVS: Javascript Virtual Subdomains
var domain, fulldomain, subdomain, location;
domain = document.domain;
// Without http://www. OR https://www.
// ===================================
fulldomain = "yourdomain.nl";
// Create as many subdomains as u want
// ===================================
subdomain[0] = "test";
slocation[0] = "http://www.yourdomain.nl/test";
subdomain[1] = "images";
slocation[1] = "http://www.yourdomain.nl/images/images.html";
subdomain[2] = "private";
slocation[2] = "http://www.yourdomain.nl/privateSection/";
// Do not edit below this line
// ===========================
function SubDomain() {
for(ArrayCount=0; ArrayCount < subdomain.length; ArrayCount++) {
if(domain == subdomain[ArrayCount]+"."+fulldomain) {
document.location.href=slocation[ArrayCount];
}
}
}
// Onload Function
// ===============
SubDomain();
-->
</script>